<?php echo form_open('admin/dataman/update_city');?>

<?php //if (!empty($items)): ?>
	<h3><?php echo lang('dataman.city_list'); ?></h3>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th>
				<th><?php echo lang('dataman.zip'); ?></th>
				<th><?php echo lang('dataman.city'); ?></th>
				<th><?php echo lang('dataman.manage'); ?></th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="5">
					<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php foreach( $cities as $city ): ?>
			<tr>
				<td><?php echo form_checkbox('action_to[]', $city->zip); ?></td>
				<td><?php echo $city->zip; ?></td>
				<td><?php echo $city->city; ?></td>
				<td>
					<?php echo
					//anchor('dataman', 	lang('dataman.view'), 'target="_blank"') 	. ' | ' .
					anchor('admin/dataman/edit_item/'		. $city->zip, 	lang('dataman.edit'));// 					. ' | ' .
					//anchor('admin/dataman/delete_item/' 	. $city->zip, 	lang('dataman.delete'), array('class'=>'confirm')); ?>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<?php $this->load->view('admin/partials/buttons', array('buttons' => array('delete'))); ?>
<!--
<?php //else: ?>
	<div class="blank-slate">
		<img src="<?php// echo site_url('addons/modules/dataman/img/album.png') ?>" />
		
		<h2><?php// echo lang('dataman.startup'); ?></h2>
	</div>
<?php //endif;?>
-->
<?php echo form_close(); ?>